consume_input

function consume_input(i: xfer_input, idx: integer, assets: map<asset, integer>)